package indi.zhifa.study2024.class002.busy.generalTest.business.curd.bill.consign.entity.request;

import indi.zhifa.study2024.class002.busy.generalTest.enums.bill.consign.ESaleType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(title = "销售单项，更改",description = "id为空，则新增；id不为空，则是修改")
@Data
public class ConsignBillDetailModifyRequest {

    @Schema(title = "id")
    private Long id;

    @Schema(title = "销售类型")
    private ESaleType saleType;

    @Schema(title = "商品Id")
    private Long itemId;

    @Schema(title = "销售数量-大单位")
    private Long largeUnitCnt;
    @Schema(title = "销售数量-中单位")
    private Long midUnitCnt;
    @Schema(title = "销售数量-小单位")
    private Long smallUnitCnt;

    /**
     * 正常业务，该值从仓库管理模块中获得
     */
    @Schema(title = "商品货值，此处记录单价")
    private Long cost;

    @Schema(title = "价格，此处记录单价")
    private Long price;
}
